import Vue from "vue";
import App from "./App";
import store from "./store"; // store
import plugins from "./plugins"; // plugins
import "./permission"; // permission

import { getTopIconDistance } from "./utils/methods";
import uView from "@/uni_modules/uview-ui";
import pageConfig from "@/config";
import * as utils from "./utils/index";
import NavBar from "@/components/nav-bar/index.vue";
import shareWx from "./utils/shareWx";
import Empty from "@/components/empty/index.vue";

Vue.mixin(shareWx);
Vue.use(uView);

Vue.use(plugins);
Vue.component("NavBar", NavBar);
Vue.component("Empty", Empty);
getTopIconDistance();

Vue.config.productionTip = false;
Vue.prototype.$store = store;
Vue.prototype.$utils = utils;
Vue.prototype.$pageConfig = pageConfig;


App.mpType = "app";

const app = new Vue({
  ...App,
});

app.$mount();
